package com.patzn.osgi.blueprint.client;

import com.patzn.osgi.blueprint.api.IEmailService;

import java.util.Map;

/**
 * @name: EmailServiceClientTracker
 * @description: EmailServiceClientTracker
 * @author: jiangcs
 */
public class EmailServiceClientTracker {
    public void bind(IEmailService iEmailService, Map<?, ?> map) {
        System.out.println("== bind ==");
        System.out.println(map);
        iEmailService.send("def@qq.com", "OSGI blueprint bind");
    }

    public void unbind(IEmailService iEmailService, Map<?, ?> map) {
        System.out.println("== unbind ==");
        System.out.println(map);
        iEmailService.send("def@qq.com", "OSGI blueprint unbind");
    }
}
